(*********************************************************************************
 * Copyright:	Bernecker+Rainer
 * Author:		rognerp
 * Created:		October 31, 2018/1:07 PM 
 *********************************************************************************
 *********************************************************************************
 * Version History:
 * -------------------------------------------------------------------------------
 * V 1.00.0   October 31, 2018/1:07 PM  First Version
 *********************************************************************************
 * Description:
 * -------------------------------------------------------------------------------
 * October 31, 2018/1:07 PM V1.00.0:
 * // TODO: INSERT DESCRIPTION
 *********************************************************************************)

ACTION checkUserInput: 
	
	IF gHmi.Commissioning.Ctrl.Next OR gHmi.Commissioning.Ctrl.Start OR gHmi.Commissioning.Ctrl.Skip THEN
		timerDelay.IN						:= FALSE;
		gHmi.Commissioning.Ctrl.Start		:= FALSE;
		gHmi.Commissioning.Ctrl.Next		:= FALSE;
		gHmi.Commissioning.Ctrl.Skip		:= FALSE;
		commissioningStep					:= commissioningStep + 1;
	ELSIF gHmi.Commissioning.Ctrl.Back THEN
		timerDelay.IN						:= FALSE;
		gHmi.Commissioning.Ctrl.Back		:= FALSE;
		commissioningStep					:= commissioningStep - 1;
	ELSIF gHmi.Commissioning.Ctrl.Cancel THEN
		timerDelay.IN						:= FALSE;
		gHmi.Commissioning.Ctrl.Cancel		:= FALSE;
		commissioningStep					:= START_DEMO_WELCOME;
	ELSIF gHmi.Commissioning.Ctrl.Confirm THEN
		timerDelay.IN						:= FALSE;
		gHmi.Commissioning.Ctrl.Confirm		:= FALSE;
		commissioningStep					:= START_DEMO_WELCOME;	
	ELSIF gHmi.Commissioning.Ctrl.RestartPlc THEN
		gHmi.Commissioning.Ctrl.RestartPlc 	:= FALSE;
		SYSreset(1, 1); 													// execute warmrestart
	END_IF;

END_ACTION
